<?php
namespace Admin\Model;
use Think\Model;
use Think\Model\RelationModel;
class MonthModel extends RelationModel{
       
    protected $_link = array(
        'task'=>array(
            'mapping_type'      => self::HAS_MANY,
            'class_name'        => 'task',
            'foreign_key'   => 'month_id',            
            'mapping_order' =>'taskstatus asc'
    
        ),
    );
    
   
    
}